import { RouteRecordRaw } from 'vue-router';

// 静态路由 只能有一个展示在静态路由 
export const constantRoutes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/index.vue'),
    meta: { isShow: false }
  },
  {
    path: '/listView',
    name: 'ListView',
    component: () => import('@/views/list-view/index.vue'),
    meta: {
      isShow: true,
      titleKey: 'listView',
      icon: 'Menu',
      isKeepAlive: true,  // 是否缓存
    }
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'NotFound',
    component: () => import('@/views/error/index.vue'),
    meta: { isShow: false }
  }
];